/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package de.hbrs.ooka.beans;

import de.hbrs.ooka.entities.ConferenceEntity;
import de.hbrs.ooka.entities.UserEntity;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author student
 */
@Local
public interface UserBeanStatelessLocal {
    public UserEntity getUser(int id);
    public UserEntity getUser(String name);
    public UserEntity registerUser(String name, String password);
    public UserEntity checkLogin(String name, String password);
    public boolean registerAtConf(UserEntity user, ConferenceEntity conf);
    public List<UserEntity> getAllUsers();

    public void assignRights(String userName, String[] roles);

    public double getReputation(UserEntity user);
}
